﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <title>个人主页 </title>
    <!-- CSS -->
    <link href="/static/css/bootstrap.css" rel="stylesheet">
    <link href="/static/css/blog.css" rel="stylesheet">

    <link rel="stylesheet" type="text/css" href="/static/admin/css/base.css">
    <link rel="stylesheet" type="text/css" href="/static/admin/css/login.css">


    <link rel="stylesheet" type="text/css" href="/static/admin/css/responsive.css">
</head>
<body>
<div class="blog-masthead">
    <div class="container">
        <nav class="blog-nav">
            <a class="blog-nav-item active" href="#index.html">首页</a>
            <a class="blog-nav-item" href="#part1">修改密码</a>
        </nav>
    </div>
</div>
<div class="intr">
    <span class="avtar"></span>
    <p class="peointr">我是: {{ username }}</p>
    <p class="peointr">电话:
        {% if phone == 0 %}
            无
        {% else %}
            {{ phone }}
        {% endif %}
    </p>
    <p class="peointr">邮箱: {{ email }}</p>

</div>


<div class="title" id="part1">修改密码</div>
<div class="content">

    <div id="content" class="colM">
        <div id="content-main">
            <form action="{% url "users" %}" method="post" id="login-form"><input type="hidden">
                {% csrf_token %}

                <div class="form-row">

                    <label class="required" for="id_username">原密码:</label> <input type="password" name="opassword"
                                                                                  autofocus
                                                                                  autocapitalize="none"
                                                                                  autocomplete="username"
                                                                                  maxlength="150" required
                                                                                  id="id_username">
                </div>
                <div class="form-row">

                    <label class="required" for="id_password">新密码:</label> <input type="password" name="npassword"
                                                                                  autocomplete="current-password"
                                                                                  required id="id_password">
                    <input type="hidden" name="next" value="/admin/">
                </div>

                <div class="form-row">
                    <label class="required">重复新密码:</label> <input type="password" name="ntpassword"
                                                                  autocomplete="current-password">
                </div>


                <div class="submit-row">
                    <label>&nbsp;</label><input type="submit" value="修改">
                </div>
            </form>
        </div>

    </div>
</div>


<!-- Js-->
<script src="/static/js/jquery-1.9.1.min.js"></script>
<script src="/static/js/bootstrap.min.js"></script>
<script src="/static/js/plugin.js"></script>
</body>
</html>
